TOP_BUILDDIR = @OMBUILDDIR@
OMCOMPILER_ROOT = $(realpath ../../../)

OPENMODELICA_INC=$(TOP_BUILDDIR)/include/omc/c/
PARMODELICAAUTO_INC=$(OPENMODELICA_INC)/ParModelica/auto/
OPENMODELICA_LIB=$(TOP_BUILDDIR)/lib/@host_short@/omc
OPENMODELICA_BIN=$(TOP_BUILDDIR)/bin/

BOOST_HOME = @BOOSTHOME@
INCDIRS = -I"../../c" -I$(BOOST_HOME) -I$(OMCOMPILER_ROOT)/3rdParty/tbb/include -I$(OMCOMPILER_ROOT)/3rdParty/gc/include

CC=@CC@
CXX=@CXX@
CFLAGS=@CFLAGS@
CPPFLAGS= -O3 -Wall -DGC_THREADS -DOM_HAVE_PTHREADS

OS_SRCS = pm_posix_timer.cpp

EXEEXT=
DLLEXT=.so

all: install

install: libParModelicaAuto.a
	$(COPY) libParModelicaAuto.a $(OPENMODELICA_LIB)
	mkdir -p $(PARMODELICAAUTO_INC)
	$(COPY) om_pm_interface.hpp $(PARMODELICAAUTO_INC)

Makefile: Makefile.in
	(cd ../../../ && ./config.status)

include Makefile.common
